//
//  MenuAdjustViewController.h
//  whereToEatMerchat
//
//  Created by WTFSSD on 2017/7/3.
//  Copyright © 2017年 WTFSSD. All rights reserved.
//

#import "BaseViewController.h"
@class BaseContentScrollViewController;
@protocol BaseContentScrollViewControllerDelegate <NSObject>

@optional
-(void)BaseContentScrollViewController:(BaseContentScrollViewController*)contentScrollViewController didCnangeChildViewController:(UIViewController*)viewController;

@end

///带选项卡的可滚动视图控制器
IB_DESIGNABLE
@interface BaseContentScrollViewController : BaseViewController

///当前控制器下标
@property(nonatomic,assign)NSInteger currentIndex;

/**
 *    工程方法
 *    @param config NSDictionary 配置字典
 *    当配置字典的key 为 kControllers 时 值为 元素为控制器类名的字符串的数组或控制器实例的数组
 *
 */
+(instancetype)controllerWith:(NSDictionary *)config;

///请传入控制器类名字符串 以英文逗号隔开
@property(nonatomic,copy)IBInspectable NSString * controllerClassNames;

@property(nonatomic,assign)id<BaseContentScrollViewControllerDelegate> contentDelegate;


-(void)setCurrentViewControllerIndex:(NSInteger)index;

-(void)setTitles:(NSArray<NSString*>*)titles;

-(void)setTitle:(NSString*)title forIndex:(NSInteger)index;

@end


UIKIT_EXTERN NSString * kControllers;
